package com.tianji.learning.service;

import com.tianji.common.domain.dto.PageDTO;
import com.tianji.common.domain.query.PageQuery;
import com.tianji.learning.domain.po.LearningLesson;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tianji.learning.domain.vo.LearningLessonVO;
import com.tianji.learning.domain.vo.LearningPlanPageVO;

import java.util.List;

/**
 * <p>
 * 学生课程表 服务类
 * </p>
 *
 * @author dayu
 * @since 2024-08-20
 */
public interface ILearningLessonService extends IService<LearningLesson> {

  PageDTO<LearningLessonVO> queryMyLearningLessonPage(PageQuery pageQuery);

  void addUserLessons(Long userId, List<Long> courseIds);

  LearningLessonVO now();

  void delRefundCourse(Long courseId);

  void delRefundCourse(Long userId, Long courseId);

  Long  isLessonValid(Long courseId);

  LearningLessonVO getCourse(Long courseId);

  Integer countLearningLessonByCourse(Long courseId);

  LearningLesson queryByUserAndCourseId(Long userId, Long courseId);

  void createLearningPlan(Long courseId, Integer freq);

  LearningPlanPageVO queryMyPlans(PageQuery query);
}
